<template>
  <AppVideo :videoList="videoList"></AppVideo>
</template>
<script setup lang="ts">
import AppVideo from '@/components/app-video.vue';
import axios from 'axios'
import { ref, onMounted } from 'vue'

// 导入 home-video.vue 中的接口 "IVideoItem"
import { IVideoItem } from '@/views/Home/components/home-video.vue'



const videoList = ref<IVideoItem[]>([])

onMounted(async () => {
  const res = await axios({
    method: 'get',
    url: '/recommendList',
  })

  videoList.value = res.data.result
})


</script>